package com.wisdytech.linkdcs.partLife.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 设备备件更换
 * </p>
 *
 * @author chenbin
 * @since 2018-06-05
 */
@TableName("TT_EQ_PART_REPLACE")
public class PartReplace extends Model<PartReplace> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 设备id
     */
    @TableField("EQUIP_ID")
    private String equipId;
    /**
     * 设备型号配置备件id
     */
    @TableField("PART_ID")
    private String partId;
    /**
     * 原序列号
     */
    @TableField("O_SERIAL_NUM")
    private String oSerialNum;
    /**
     * 新序列号
     */
    @TableField("N_SERIAL_NUM")
    private String nSerialNum;
    /**
     * 剩余使用寿命
     */
    @TableField("REMAIN_LIFE")
    private Double remainLife;
    /**
     * 更换人
     */
    @TableField("REP_USER")
    private String repUser;
    /**
     * 更换原因
     */
    @TableField("REP_REASON")
    private String repReason;
    /**
     * 更换时间
     */
    @TableField("REP_DATE")
    private Date repDate;
    /**
     * 更换数量
     */
    @TableField("REP_NUM")
    private Double repNum;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    /**
     * 创建记录时间（用于取最新更换数据）
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    
    /**
     * 备件编码
     */
    @TableField(exist=false)
    private String partCode;
    /**
     * 备件名称
     */
    @TableField(exist=false)
    private String partName;
    /**
     * 位置编码
     */
    @TableField(exist=false)
    private String locationCode;
    /**
     * 位置名称
     */
    @TableField(exist=false)
    private String locationName;
    /**
     * 是否为关键备件
     */
    @TableField(exist=false)
    private Double keyPartFlag;
    /**
     * 状态
     */
    @TableField(exist=false)
    private Double status;
    /**
     * 原序列号id
     */
    @TableField(exist=false)
    private String oSeriId;
    /**
     * 设备编码
     */
    @TableField(exist=false)
    private String equipCode;
    /**
     * 设备名称
     */
    @TableField(exist=false)
	private String equipName;

    public String getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(String equipCode) {
		this.equipCode = equipCode;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public String getoSeriId() {
		return oSeriId;
	}

	public void setoSeriId(String oSeriId) {
		this.oSeriId = oSeriId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Double getStatus() {
		return status;
	}

	public void setStatus(Double status) {
		this.status = status;
	}

	public Double getKeyPartFlag() {
		return keyPartFlag;
	}

	public void setKeyPartFlag(Double keyPartFlag) {
		this.keyPartFlag = keyPartFlag;
	}

	public String getPartCode() {
		return partCode;
	}

	public void setPartCode(String partCode) {
		this.partCode = partCode;
	}

	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public String getLocationCode() {
		return locationCode;
	}

	public void setLocationCode(String locationCode) {
		this.locationCode = locationCode;
	}

	public String getLocationName() {
		return locationName;
	}

	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}

	public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }



    public String getEquipId() {
		return equipId;
	}

	public void setEquipId(String equipId) {
		this.equipId = equipId;
	}

    public String getPartId() {
		return partId;
	}

	public void setPartId(String partId) {
		this.partId = partId;
	}

	public String getoSerialNum() {
        return oSerialNum;
    }

    public void setoSerialNum(String oSerialNum) {
        this.oSerialNum = oSerialNum;
    }

    public String getnSerialNum() {
        return nSerialNum;
    }

    public void setnSerialNum(String nSerialNum) {
        this.nSerialNum = nSerialNum;
    }

    public Double getRemainLife() {
        return remainLife;
    }

    public void setRemainLife(Double remainLife) {
        this.remainLife = remainLife;
    }

    public String getRepUser() {
        return repUser;
    }

    public void setRepUser(String repUser) {
        this.repUser = repUser;
    }

    public String getRepReason() {
        return repReason;
    }

    public void setRepReason(String repReason) {
        this.repReason = repReason;
    }

    public Date getRepDate() {
        return repDate;
    }

    public void setRepDate(Date repDate) {
        this.repDate = repDate;
    }

    public Double getRepNum() {
        return repNum;
    }

    public void setRepNum(Double repNum) {
        this.repNum = repNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


    
    

}
